package mypack;
import java.io.*;
import java.util.*;
public class ChuNhat {
	double a,b;
	public void Nhap()
	{
		Scanner scan =new Scanner(System.in);
		System.out.print("Do dai 1 2 chieu rong : ");
		a=scan.nextDouble();
		System.out.print("Do dai chieu dai : ");
		b=scan.nextDouble();
	}
	public double ChuVi()
	{
		return (a+b)*2;
		
	}
	public double DienTich()
	{
		return a*b;
	}
}
